package io.renren.modules.biz.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

/**
 * 当前发包表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-09-03 14:51:31
 */
@TableName("tb_send_packet")
public class SendPacketEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 房间ID
	 */
	private Long roomId;
	/**
	 * 发包会员
	 */
	private Long memberId;
	/**
	 * 是否为机器人 0:否 1:是
	 */
	private Integer isRobot;
	/**
	 * 发包金额
	 */
	private Double amount;
	/**
	 * 已抢金额
	 */
	private Double grabAmount;
	/**
	 * 剩余金额
	 */
	private Double balanceAmount;
	/**
	 * 发包数量
	 */
	private Integer packetQty;
	/**
	 * 已抢数量
	 */
	private Integer grabQty;
	/**
	 * 剩余数量
	 */
	private Integer balanceQty;
	/**
	 * 雷点
	 */
	private Integer landmine;
	/**
	 * 平台抽成
	 */
	private Double fee;
	/**
	 * 红包状态 0:可抢 1:抢完结束 2:未完结束 3:已退款
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 乐观锁标记防止高并发
	 */
	@Version
	private Integer version;
	/**
	 * 房间名
	 */
	@TableField(exist = false)
	private String roomName;
	/**
	 * 头像
	 */
	@TableField(exist = false)
	private String headImg;
	/**
	 * 手机
	 */
	@TableField(exist = false)
	private String mobile;

	/**
	 * 设置：主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取：主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置：房间ID
	 */
	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	/**
	 * 获取：房间ID
	 */
	public Long getRoomId() {
		return roomId;
	}

	/**
	 * 设置：发包会员
	 */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取：发包会员
	 */
	public Long getMemberId() {
		return memberId;
	}

	/**
	 * 设置 ：是否为机器人 0:否 1:是
	 */
	public void setIsRobot(Integer isRobot) {
		this.isRobot = isRobot;
	}

	/**
	 * 获取：是否为机器人 0:否 1:是
	 */
	public Integer getIsRobot() {
		return isRobot;
	}

	/**
	 * 设置：发包金额
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}

	/**
	 * 获取：发包金额
	 */
	public Double getAmount() {
		return amount;
	}

	/**
	 * 设置：已抢金额
	 */
	public void setGrabAmount(Double grabAmount) {
		this.grabAmount = grabAmount;
	}

	/**
	 * 获取：已抢金额
	 */
	public Double getGrabAmount() {
		return grabAmount;
	}

	/**
	 * 设置：剩余金额
	 */
	public void setBalanceAmount(Double balanceAmount) {
		this.balanceAmount = balanceAmount;
	}

	/**
	 * 获取：剩余金额
	 */
	public Double getBalanceAmount() {
		return balanceAmount;
	}

	/**
	 * 设置：发包数量
	 */
	public void setPacketQty(Integer packetQty) {
		this.packetQty = packetQty;
	}

	/**
	 * 获取：发包数量
	 */
	public Integer getPacketQty() {
		return packetQty;
	}

	/**
	 * 设置：已抢数量
	 */
	public void setGrabQty(Integer grabQty) {
		this.grabQty = grabQty;
	}

	/**
	 * 获取：已抢数量
	 */
	public Integer getGrabQty() {
		return grabQty;
	}

	/**
	 * 设置：剩余数量
	 */
	public void setBalanceQty(Integer balanceQty) {
		this.balanceQty = balanceQty;
	}

	/**
	 * 获取：剩余数量
	 */
	public Integer getBalanceQty() {
		return balanceQty;
	}

	/**
	 * 设置：雷点
	 */
	public void setLandmine(Integer landmine) {
		this.landmine = landmine;
	}

	/**
	 * 获取：雷点
	 */
	public Integer getLandmine() {
		return landmine;
	}

	/**
	 * 设置：平台抽成
	 */
	public void setFee(Double fee) {
		this.fee = fee;
	}

	/**
	 * 获取：平台抽成
	 */
	public Double getFee() {
		return fee;
	}

	/**
	 * 设置：红包状态 0:可抢 1:抢完结束 2:未完结束 3:已退款
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取：红包状态 0:可抢 1:抢完结束 2:未完结束 3:已退款
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置：更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * 获取：更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
}
